﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CalendarioCadastro.aspx.cs" Inherits="CursoUNICEUB.CalendarioCadastro" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style4
        {
            width: 80px;
        }
        .style5
        {
            width: 123px;
        }
    </style>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery.maskedinput-1.3.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            var txt = $('#<%=txtDiaMes.ClientID%>');
            txt.mask("99/99");
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Cadastro de Calendário</h1>
    <table style="width: 100%;">
        <tr>
            <td class="style4">
                Curso :
            </td>
            <td>
                <asp:Label ID="lblCurso" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style4">
                Período :
            </td>
            <td>
                de
                <asp:Label ID="lblInicio" runat="server" />
                &nbsp;até
                <asp:Label ID="lblFim" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style4">
                Dias :
            </td>
            <td style="margin-left: 40px">
                <asp:Label ID="lblDias" runat="server" />
            </td>
        </tr>
    </table>
    <br />
    <hr />
    <table>
        <tr>
            <td class="style5">
                Dia/Mês(dd/mm) :
            </td>
            <td style="margin-left: 40px">
                <asp:TextBox ID="txtDiaMes" runat="server" Width="53px" MaxLength="10"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDiaMes" runat="server" Display="Dynamic" ControlToValidate="txtDiaMes"
                    ErrorMessage="Dia/Mes." ToolTip="Campo Obrigatório." ValidationGroup="Adicionar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style5" valign="top">
                Descrição :
            </td>
            <td style="margin-left: 40px">
                <asp:TextBox ID="txtDescricao" runat="server" Width="486px" MaxLength="10" Height="93px"
                    TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDescricao" runat="server" Display="Dynamic" ControlToValidate="txtDescricao"
                    ErrorMessage="Descrição." ToolTip="Campo Obrigatório." ValidationGroup="Adicionar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnAdicionar" runat="server" Text="Adicionar" ValidationGroup="Adicionar"
                    OnClick="btnAdicionar_Click" />
                <asp:ValidationSummary ID="vSum" runat="server" HeaderText="Favor verificar os seguintes campos :"
                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="Adicionar" />
            </td>
        </tr>
    </table>
</asp:Content>
